<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>login</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
	function reloadCode(){
		var time=new Date().getTime();
		document.getElementById("imagecode").src="<%=request.getContextPath() %>/servlet/ImageServlet?d="+time;
	}
</script>
</head>

</head>
<font color="red">
  <%
  Object obj =  request.getAttribute("error_msg");
  if(null != obj){
	  out.println(obj.toString());
  }
  %>
 </font>
<body>
	<center>

		<table width="90%" height="100%" border="0" align="center">
			<tr>
				<td><img src="assets/images/head.png" width="100%" height="100%" /></td>
			</tr>
			<tr>
				<td bgcolor="lightblue">
					
					<font size="5" face="楷体">欢迎登录:<br>万达信息xxx管理系统</font>
					
					<table align="center" border="0" bgcolor="#006400">
						<tr>
							<td width="500" height="350">

								<center>
									<h1>用户登录</h1>
									<form action="servlet/UserServlet" method="post">
									<input type="hidden" name="act" value="login">
										<table border="0" bgcolor="#006400">
											<tr>
												<td align="right">账号：</td>
												<td align="left">
													<input type="text" name="account" id="username"/>
												</td>
											</tr>
											<tr>
												<td align="right">密码：</td>
												<td align="left">
													<input type="password" name="password" id="pwd"/>
												</td>
											</tr>
											<tr>
												<td align="right">验证码：</td>
												<td align="left">
													<input type="text" name="checkcode"/>
													<img alt="验证码" id="imagecode" src="<%=request.getContextPath() %>/servlet/ImageServlet" />
													<a href="javascript:reloadCode();">看不清</a>
												</td>
											</tr>
											<tr>
												<td colspan="2" align="center">
													<input type="submit" value="登录">
													<input type="reset" value="取消">
												</td>
											</tr>
										</table>
									</form>
								</center>
							</td>
						</tr>

					</table> <br> <br>
				<br> <br>
				<br> <br>
				</td>
			</tr>
		</table>
	</center>
</body>
</html>